{layout name="layout" /}
<h3>扩展配置文件extra/code.php文件（定义返回码）</h3>
<br>
<textarea readonly class="width">
return [
    '500' => ['code' => 500 , 'message' => '请输入正确的访问地址'],//空控制器、空方法 可以跳转-->404页面
    '200' => ['code' => 200 , 'message' => '操作成功'],
    '404' => ['code' => 404 , 'message' => '操作失败'],

    '10000' => ['code' => 10000 , 'message' => '请求类型错误'],
    '10001' => ['code' => 10001 , 'message' => '验证器未通过'],
    '10002' => ['code' => 10002 , 'message' => '用户不存在'],
    '10003' => ['code' => 10003 , 'message' => '密码错误'],
];
</textarea>